package com.yoso.shop.infrastructure.dao.order;

import com.yoso.base.infrastructure.dao.BaseMapper;
import com.yoso.shop.domain.order.OrderEntity;
import com.yoso.shop.domain.order.OrderEntityExample;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface OrderEntityMapper extends BaseMapper<OrderEntity, OrderEntityExample> {
    @Override
    long countByExample(OrderEntityExample example);

    @Override
    int deleteByExample(OrderEntityExample example);

    @Override
    int insert(OrderEntity record);

    @Override
    int insertSelective(OrderEntity record);

    @Override
    List<OrderEntity> selectByExample(OrderEntityExample example);

    @Override
    int updateByExampleSelective(@Param("record") OrderEntity record, @Param("example") OrderEntityExample example);

    @Override
    int updateByExample(@Param("record") OrderEntity record, @Param("example") OrderEntityExample example);
    @Override
    OrderEntity selectByPrimaryKey(String id);

    @Override
    int deleteByPrimaryKey(String id);

    @Override
    int updateByPrimaryKeySelective(OrderEntity record);

    @Override
    int updateByPrimaryKey(OrderEntity record);
}